home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Xm / XmeDrawShadows.z / XmeDrawShadows
Encoding:
Text File  |  2002-10-03  |  5.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss((((3333XXXX))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss - Draws a Motif-style, three-dimensional
  10.           shadow around a widget
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/DrawP.h>
  14.           vvvvooooiiiidddd XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss(
  15.           DDDDiiiissssppppllllaaaayyyy ****ddddiiiissssppppllllaaaayyyy,
  16.           DDDDrrrraaaawwwwaaaabbbblllleeee ddddrrrraaaawwwwaaaabbbblllleeee,
  17.           GGGGCCCC ttttoooopppp____ggggcccc,
  18.           GGGGCCCC bbbboooottttttttoooommmm____ggggcccc,
  19.           PPPPoooossssiiiittttiiiioooonnnn xxxx,
  20.           PPPPoooossssiiiittttiiiioooonnnn yyyy,
  21.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn wwwwiiiiddddtttthhhh,
  22.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn hhhheeeeiiiigggghhhhtttt,
  23.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn sssshhhhaaaaddddoooowwww____tttthhhhiiiicccckkkknnnneeeessssssss,
  24.           uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr sssshhhhaaaaddddoooowwww____ttttyyyyppppeeee);
  25.  
  26.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  27.           This page documents Motif 2.1.
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.           XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss places a three-dimensional, Motif-style
  31.           shadow around a widget.  This shadow is one of the
  32.           fundamental visuals that gives Motif widgets their
  33.           characteristic look and feel.
  34.  
  35.           _d_i_s_p_l_a_y   Specifies the display.
  36.  
  37.           _d_r_a_w_a_b_l_e  Specifies the drawable to draw the shadow around.
  38.  
  39.           _t_o_p__g_c    Specifies the graphics context for the upper-left
  40.                     portion of the shadow.
  41.  
  42.           _b_o_t_t_o_m__g_c Specifies the graphics context for the bottom-
  43.                     right portion of the shadow.
  44.  
  45.           _x         Specifies the x-coordinate of the leftmost point
  46.                     of the shadow.
  47.  
  48.           _y         Specifies the y-coordinate of the top of the
  49.                     shadow.
  50.  
  51.           _w_i_d_t_h     Specifies the width of the shadow rectangle, in
  52.                     pixels.
  53.  
  54.           _h_e_i_g_h_t    Specifies the height of the shadow rectangle, in
  55.                     pixels.
  56.  
  57.           _s_h_a_d_o_w__t_h_i_c_k_n_e_s_s
  58.                     Specifies the shadow thickness in pixels. The
  59.                     shadow is drawn from the outside in. The
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss((((3333XXXX))))        UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmeeeeDDDDrrrraaaawwwwSSSShhhhaaaaddddoooowwwwssss((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                     dimensions of the outside of the shadow are
  75.                     described by _x, _y_x, _w_i_d_t_h, and _h_e_i_g_h_t.
  76.  
  77.           _s_h_a_d_o_w__t_y_p_e
  78.                     Specifies the kind of shadow to render.  The
  79.                     possible values are as follows:
  80.  
  81.                     XXXXmmmmSSSSHHHHAAAADDDDOOOOWWWW____IIIINNNN
  82.                               Draws shadow so that it appears inset.
  83.                               This means that the bottom shadow
  84.                               visuals and top shadow visuals are
  85.                               reversed.
  86.  
  87.                     XXXXmmmmSSSSHHHHAAAADDDDOOOOWWWW____OOOOUUUUTTTT
  88.                               Draws shadow so that it appears outset.
  89.  
  90.                     XXXXmmmmSSSSHHHHAAAADDDDOOOOWWWW____EEEETTTTCCCCHHHHEEEEDDDD____IIIINNNN
  91.                               Draws shadow by using a double line to
  92.                               give the effect of a line etched into
  93.                               the window. The thickness of the double
  94.                               line is equal to the value of
  95.                               _s_h_a_d_o_w__t_h_i_c_k_n_e_s_s.
  96.  
  97.                     XXXXmmmmSSSSHHHHAAAADDDDOOOOWWWW____EEEETTTTCCCCHHHHEEEEDDDD____OOOOUUUUTTTT
  98.                               Draws shadow by using a double line to
  99.                               give the effect of a line coming out of
  100.                               the window. The thickness of the double
  101.                               line is equal to the value of
  102.                               _s_h_a_d_o_w__t_h_i_c_k_n_e_s_s.
  103.  
  104.      RRRREEEELLLLAAAATTTTEEEEDDDD
  105.           XXXXmmmmeeeeDDDDrrrraaaawwwwPPPPoooollllyyyyggggoooonnnnSSSShhhhaaaaddddoooowwww(3).
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.